package com.dart.sys.service;

import java.util.List;

import com.dart.commons.base.service.IService;
import com.dart.sys.entity.Resource;

public interface ResourceService extends IService<Resource, Integer> {

	/**
	 * 查询所有一级节点
	 * @param id
	 * @return
	 */
	public List<Resource> selectRoots();
	
	/**
	 * 根据ID查询子节点
	 * @param id
	 * @return
	 */
	public List<Resource> selectChildrenById(Integer id);
	
	/**
	 * 递归资源节点
	 * @return
	 */
	public List<Resource> recursiveResource(Integer id) ;
	
	
}
